<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>13.4 Document </title>
		<link href="https://cdn.bootcdn.net/ajax/libs/normalize/8.0.1/normalize.css" rel="stylesheet">
		<link rel="stylesheet" href="css/main.css">
		<link media="(max-width: 736px)" rel="stylesheet" href="css/mobile.css">

	</head>
	<!-- 
	 
	 https://biaoyansu.com/13.2
	 为博客添加移动端样式 表
	
	 
	 
	 https://biaoyansu.com/13.3
	 移动端菜单的打开与关闭 
	 
	 
	 
	 https://biaoyansu.com/13.4
	 关于meta viewport
	 
	 
	 https://viewportsizes.com/?filter=iphone
	 
	 
	 -->

	<body>

		<!-- 网站 左边 -->
		<div class="side-bar">

			<label for="menu-checkbox" id="menu-toggle">菜单</label>
			<input type="checkbox" name="menu-checkbox" id="menu-checkbox" value="" />
			<div class="header">
				<a href="index.html" class="logo"> 王花花 主页</a>
				<div class="intro">Hi I am whh. Welcome to visit me.</div>

			</div>
			<div class="nav">
				<a href="#" class="item">个人中心</a>
				<a href="#" class="item">内容管理</a>
				<a href="#" class="item">学习平台</a>
				<a href="#" class="item">我的钱包</a>
				<a href="" class="item">我的认证</a>
				<a href="" class="item">联系我</a>
			</div>
			<div class="tag-list">
				<a href="#" class="item"># python基础</a>
				<a href="#" class="item"># javascript学习笔记</a>
				<a href="#" class="item"># flask 入门</a>
				<a href="#" class="item"># ES6特性</a>

			</div>

		</div>
		<!-- 网站 左边  结束-->

		<!-- 网站右边 -->
		<div class="main">

			<div class="article-list">



				<div class="item">

					<a class="title" href="article.html">Refreshing Tokens
					</a>
					<div class="status">发布于:2020-03-15 | 阅读: 9882 | 收藏:600 | 赞:10</div>
					<div class="content">
						In most web applications, it would not be ideal if a user was logged out in the middle of doing
						something because their JWT expired. Unfortunately we can’t just change the expires time on a
						JWT on each request, as once a JWT is created it cannot be modified. Lets take a look at some
						options for solving this problem by refreshing JWTs.

					</div>

				</div>


				<div class="item">
					<a class="title" href="article.html">Explicit Refreshing With Refresh Tokens</a>
					<div class="status">发布于:2020-03-15 | 阅读: 9882 | 收藏:600 | 赞:10</div>

					<div class="content">

						<p>
							Alternatively, this extension comes out of the box with refresh token support. A refresh
							token is a long lived JWT that can only be used to creating new access tokens.
						</p>

						<p>
							You have a couple choices about how to utilize a refresh token. You could store the expires
							time of your access token on your frontend, and each time you make an API request first
							check if the current access token is near or already expired, and refresh it as needed. This
							approach is pretty simple and will work fine in most cases, but do be aware that if your
							frontend has a clock that is significantly off, you might run into issues.

						</p>

						<p>
							An alternative approach involves making an API request with your access token and then
							checking the result to see if it worked. If the result of the request is an error message
							saying that your token is expired, use the refresh token to generate a new access token and
							redo the request with the new token. This approach will work regardless of the clock on your
							frontend, but it does require having some potentially more complicated logic.

						</p>


						<p>

							Using refresh tokens is our recommended approach when your frontend is not a website
							(mobile, api only, etc).
						</p>



					</div>
				</div>




				<div class="item">
					<a class="title" href="https://blog.csdn.net/u010339879/article/details/122903012">设计原则-接口隔离原则
					</a>
					<div class="status">发布于:2022-03-15 | 阅读: 93882 | 收藏:11600 | 赞:140</div>

					<div class="content">

						今天，我们继续讲解 软件设计中的另外一个重要的原则，接口隔离原则。

						接口隔离原则**（英语：interface-segregation principles， 缩写：ISP）**

						指明客户（client）不应被迫使用对其而言无用的方法或功能。

						接口隔离原则（ISP）拆分非常庞大臃肿的接口成为更小的和更具体的接口，这样客户将会只需要知道他们感兴趣的方法。这种缩小的接口也被称为角色接口（role interfaces）。

						接口隔离原则（ISP）的目的是系统解开耦合，从而容易重构，更改和重新部署。



					</div>
				</div>



				
				
				
				<div class="item">
					<a class="title" href="https://blog.csdn.net/u010339879/article/details/122831646">python3.10 新的特性介绍
					</a>
					<div class="status">发布于:2022-03-15 | 阅读: 93882 | 收藏:11600 | 赞:140</div>
				
					<div class="content">
				
						python3.10 新的特性介绍文章目录python3.10 新的特性介绍with 嵌套语句的使用 新增Match case 语句 新增匹配对象匹配状态码匹配枚举类型的变量或操作符新的含义其他参考文档Python3.10 发布也有一段时间了，新的版本提供了一些好用的功能，可能比较关注的就是 match case 这个多分...
				
				
				
					</div>
				</div>
				
				
				
				
				
				
				
				<div class="item">
					<a class="title" href="https://blog.csdn.net/u010339879/article/details/122831646">Javascript数组的 splice方法介绍
					</a>
					<div class="status">发布于:2022-04-15 | 阅读: 930882 | 收藏:11600 | 赞:10</div>
				
					<div class="content">
				
						Javascript数组的 splice 方法介绍splice() 方法通过删除或替换现有元素或者原地添加新的元素来修改数组,并以数组形式返回被修改的内容。此方法会改变原数组。语法格式array.splice(start[, deleteCount[, item1[, item2[, ...]]]])参数start 必选指定修改的开始位置（从0计数）。如果超出了数组的...
				
				
				
					</div>
				</div>
				
				
				
				
				
				
				
				<div class="item">
					<a class="title" href="https://blog.csdn.net/u010339879/article/details/122353974">Flask获取GET参数

					</a>
					<div class="status">发布于:2022-04-15 | 阅读: 930882 | 收藏:11600 | 赞:10</div>
				
					<div class="content">
				
						flask获取get 请求参数 ...
				
				
					</div>
				</div>
				
				
				
				
				
				
				<div class="item">
					<a class="title" href="https://blog.csdn.net/u010339879/article/details/119517222?spm=1001.2014.3001.5501">python3中requests库重定向获取真实的URL

					</a>
					<div class="status">发布于:2022-04-15 | 阅读: 930882 | 收藏:11600 | 赞:10</div>
				
					<div class="content">
				
						python3中requests库重定向获取真实的URL问题描述有时候 我们抓取一些页面，发现一些url 有重定向， 返回 301 ，或者302 这种情况。 那么我们如何获取真实的URL呢？ 或者跳转后的URL呢？这里我使用 requests 作为演示假设我们要访问 某东的电子商务网站，我只记得网站好像是...
				
				
					</div>
				</div>
				
				
				
				

			</div>
		</div>
		<!-- 网站右边 结束 -->

	</body>
</html>
